package com.weds.edpf.core.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import java.util.List;

import com.weds.core.base.BaseService;
import com.weds.edpf.core.mapper.DepDeleteMapper;
import com.weds.edpf.core.entity.DepDeleteEntity;

/**
 * @Author sxm
 * @Description DepDelete管理
 * @Date 2020-06-02
 */
@Service
public class DepDeleteService extends BaseService {

	@Autowired
	private DepDeleteMapper depDeleteMapper;

	private Logger log = LogManager.getLogger();

	public int deleteByPrimaryKey(Long depSerial) {
		return depDeleteMapper.deleteByPrimaryKey(depSerial);
	}

	public int insert(DepDeleteEntity record) {
		return depDeleteMapper.insert(record);
	}

	public int insertSelective(DepDeleteEntity record) {
		return depDeleteMapper.insertSelective(record);
	}

	public DepDeleteEntity selectByPrimaryKey(Long depSerial) {
		return depDeleteMapper.selectByPrimaryKey(depSerial);
	}

	public int updateByPrimaryKeySelective(DepDeleteEntity record) {
		return depDeleteMapper.updateByPrimaryKeySelective(record);
	}

	public int updateByPrimaryKey(DepDeleteEntity record) {
		return depDeleteMapper.updateByPrimaryKey(record);
	}

    	public List<DepDeleteEntity> selectListByEntity(DepDeleteEntity record) {
		return depDeleteMapper.selectListByEntity(record);
	}
	
	

        public int deleteBatchByKeys(List<DepDeleteEntity> list) {
        return depDeleteMapper.deleteBatchByKeys(list);
    }
    
    	public int insertBatch(List<DepDeleteEntity> list) {
		return depDeleteMapper.insertBatch(list);
	}
	}
